import os
import  time

import alert as alert
from selenium import webdriver
from selenium.webdriver.common.by import By

driver=webdriver.Chrome()
file="file:///" + os.path.abspath("../html4") + "/radio-checkbox.html"
driver.get(file)

# boy=driver.find_element(By.ID,'boy')
# boy.click()
# time.sleep(3)
# print(boy.is_selected())

girl=driver.find_element(By.ID,'girl')
# 还没选中的状态
print(girl.is_selected())
girl.click()
#选中的状态
print(girl.is_selected())

time.sleep(3)
driver.quit()


